enum Status {
    MESSAGE=1,SP,DJ
}
function getServe(status: any) {
    if(status === Status.MESSAGE) {
        return 'message'
    } else if(status === Status.SP) {
        return 'sp'
    } else if(status === Status.DJ) {
        return 'dj'
    }

}
const result =  getServe(2);
console.log(result);
console.log(Status[1], Status.MESSAGE);
